
/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-27 09:34:45
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 10:02:10
 */

import {
  OrderPageParms,
  OrderListGetResultModel,
  OrderDetailParam,
  VarifyListGetResultModel,
  VarifyPageParms
} from './model/orderModel';
import { defHttp } from '/@/utils/http/axios';

import {
  BasicResult
} from '../model/baseModel';


enum Api {
  OrderList = '/substore/order/list',
  OrderDetail = '/substore/order/detail',
  VarifyList = '/substore/order.verify/list'
}
/**
 * 获取订单列表
 */
export const getOrderList = (params: OrderPageParms) =>
  defHttp.get<OrderListGetResultModel>({ url: Api.OrderList, params });

/**
 * 获取订单详情
 * @param params 
 * @returns 
 */
export const orderDetail = (params: OrderDetailParam) =>
  defHttp.get<BasicResult>({ url: Api.OrderDetail, params });
